<div class='right-cont right-cont-less' ng-controller='ActivityList'>
	<div class='title'>活动列表<i class='fa fa-spinner fa-spin' ng-if='loading'></i></div>
	<div class='content'>
		<ul class='nav nav-tabs nav-tabs-a'>
            <li class='active'>
                <a data-target='#list-all' data-toggle='tab'>全部</a>
            </li>
            <li><a data-target='#list-1' data-toggle='tab'>小班</a></li>
            <li><a data-target='#list-2' data-toggle='tab'>中班</a></li>
            <li><a data-target='#list-3' data-toggle='tab'>大班</a></li>

            <div class='box-btn'>
                <button class='btn btn-primary' ng-click='add_item()'>添加</button>
            </div>
        </ul>
        <div class='tab-content tab-content-a'>
            <div class='tab-pane fade in active' id='list-all'>
                <table class='table table-list'>
                    <tr>
                        <td>活动ID <span class='fa fa-sort'></span></td>
                        <td>标题<span class='fa fa-sort'></span></td>
                        <td>上传时间<span class='fa fa-sort'></span></td>
                        <td>修改时间<span class='fa fa-sort'></span></td>
                        <td>等级<span class='fa fa-sort'></span></td>
                        <td>状态<span class='fa fa-sort'></span></td>
                        <td>操作<span class='fa fa-sort'></span></td>
                    </tr>
                    <tr ng-repeat='item in list'>
                        <td>{{item.id || '未知'}}</td>
                        <td>{{item.title || '未知'}}</td>
                        <td>{{item.create_date || '未知'}}</td>
                        <td>{{item.update_date || '未知'}}</td>
                        <td>{{item.level_text || '未知'}}</td>
                        <td>
                            <span class='label label-success' ng-if='item.status == 1'>
                                {{item.status_text || '未知'}}
                            </span>
                            <span class='label label-warning' ng-if='item.status == 0'>
                                {{item.status_text || '未知'}}
                            </span>
                        </td>
                        <td>
                            <button class='btn btn-primary btn-xs btn-w-xs' ng-click='get_item(item.id)'>详情</button>
                            <button class='btn btn-success btn-xs btn-w-xs' ng-click='get_known(item)'>须知</button>
                            <button class='btn btn-danger btn-xs btn-w-xs' 
                                ng-click='update_item(item.id, {"status" : "-1"})'>
                                删除
                            </button>
                        </td>
                    </tr>
                </table>
            </div>
            <div class='tab-pane fade' id='list-1'>
                <table class='table table-list'>
                    <tr>
                        <td>活动ID <span class='fa fa-sort'></span></td>
                        <td>标题<span class='fa fa-sort'></span></td>
                        <td>上传时间<span class='fa fa-sort'></span></td>
                        <td>修改时间<span class='fa fa-sort'></span></td>
                        <td>等级<span class='fa fa-sort'></span></td>
                        <td>状态<span class='fa fa-sort'></span></td>
                        <td>操作<span class='fa fa-sort'></span></td>
                    </tr>
                    <tr ng-repeat='item in list'>
                        <td>{{item.id || '未知'}}</td>
                        <td>{{item.title || '未知'}}</td>
                        <td>{{item.create_date || '未知'}}</td>
                        <td>{{item.update_date || '未知'}}</td>
                        <td>{{item.level_text || '未知'}}</td>
                        <td>
                            <span class='label label-success' ng-if='item.status == 1'>
                                {{item.status_text || '未知'}}
                            </span>
                            <span class='label label-warning' ng-if='item.status == 0'>
                                {{item.status_text || '未知'}}
                            </span>
                        </td>
                        <td>
                            <button class='btn btn-primary btn-xs btn-w-xs' ng-click='get_item(item.id)'>详情</button>
                            <button class='btn btn-success btn-xs btn-w-xs' ng-click='get_known(item)'>须知</button>
                            <button class='btn btn-danger btn-xs btn-w-xs' 
                                ng-click='update_item(item.id, {"status" : "-1"})'>
                                删除
                            </button>
                        </td>
                    </tr>
                </table>
            </div>
            <div class='tab-pane fade' id='list-2'>
                <table class='table table-list'>
                    <tr>
                        <td>活动ID <span class='fa fa-sort'></span></td>
                        <td>标题<span class='fa fa-sort'></span></td>
                        <td>上传时间<span class='fa fa-sort'></span></td>
                        <td>修改时间<span class='fa fa-sort'></span></td>
                        <td>等级<span class='fa fa-sort'></span></td>
                        <td>状态<span class='fa fa-sort'></span></td>
                        <td>操作<span class='fa fa-sort'></span></td>
                    </tr>
                    <tr ng-repeat='item in list'>
                        <td>{{item.id || '未知'}}</td>
                        <td>{{item.title || '未知'}}</td>
                        <td>{{item.create_date || '未知'}}</td>
                        <td>{{item.update_date || '未知'}}</td>
                        <td>{{item.level_text || '未知'}}</td>
                        <td>
                            <span class='label label-success' ng-if='item.status == 1'>
                                {{item.status_text || '未知'}}
                            </span>
                            <span class='label label-warning' ng-if='item.status == 0'>
                                {{item.status_text || '未知'}}
                            </span>
                        </td>
                        <td>
                            <button class='btn btn-primary btn-xs btn-w-xs' ng-click='get_item(item.id)'>详情</button>
                            <button class='btn btn-success btn-xs btn-w-xs' ng-click='get_known(item)'>须知</button>
                            <button class='btn btn-danger btn-xs btn-w-xs' 
                                ng-click='update_item(item.id, {"status" : "-1"})'>
                                删除
                            </button>
                        </td>
                    </tr>
                </table>
            </div>
            <div class='tab-pane fade' id='list-3'>
                <table class='table table-list'>
                    <tr>
                        <td>活动ID <span class='fa fa-sort'></span></td>
                        <td>标题<span class='fa fa-sort'></span></td>
                        <td>上传时间<span class='fa fa-sort'></span></td>
                        <td>修改时间<span class='fa fa-sort'></span></td>
                        <td>等级<span class='fa fa-sort'></span></td>
                        <td>状态<span class='fa fa-sort'></span></td>
                        <td>操作<span class='fa fa-sort'></span></td>
                    </tr>
                    <tr ng-repeat='item in list'>
                        <td>{{item.id || '未知'}}</td>
                        <td>{{item.title || '未知'}}</td>
                        <td>{{item.create_date || '未知'}}</td>
                        <td>{{item.update_date || '未知'}}</td>
                        <td>{{item.level_text || '未知'}}</td>
                        <td>
                            <span class='label label-success' ng-if='item.status == 1'>
                                {{item.status_text || '未知'}}
                            </span>
                            <span class='label label-warning' ng-if='item.status == 0'>
                                {{item.status_text || '未知'}}
                            </span>
                        </td>
                        <td>
                            <button class='btn btn-primary btn-xs btn-w-xs' ng-click='get_item(item.id)'>详情</button>
                            <button class='btn btn-success btn-xs btn-w-xs' ng-click='get_known(item)'>须知</button>
                            <button class='btn btn-danger btn-xs btn-w-xs' 
                                ng-click='update_item(item.id, {"status" : "-1"})'>
                                删除
                            </button>
                        </td>
                    </tr>
                </table>
            </div>
            <div class='box-page' ng-bind-html='pageHtml'></div>
        </div>
	</div>
</div>